﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SEVN.Web.Framework.Modules.Slides
{
    public partial class SlideShow0201 : System.Web.UI.UserControl
    {
        WebFrameDataContext web = new WebFrameDataContext();
        protected void Page_Load(object sender, EventArgs e)
        {
            Repeater1.DataSource = web.Slides.Where(x => x.IsShow == true).OrderByDescending(x => x.Date).Take(8);
            Repeater1.DataBind();
        }
    }
}